package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.common.web.sso.LoginInfo;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtBreedReports;

import java.util.Map;

/**
 * Created by mz on 13/11/17.
 *
 */
public interface DjtBreedReportsWriteService extends BaseService<DjtBreedReports>{

    /**
     * 创建单据
     * @param djtBreedReports 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>（id）
     */
    Map<String , Object> create(DjtBreedReports djtBreedReports, Integer toStatus, LoginInfo loginInfo);

    /**
     * 更新单据
     * @param djtBreedReports 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> update(DjtBreedReports djtBreedReports, Integer toStatus,LoginInfo loginInfo);

    /**
     * 更改单据的delete——flag
     * @param id 单据id
     */
    void updateDeleteFlag(Long id);
}
